/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.emergency.resources.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hopes.bizz.emergency.resources.dto.ErEmergencyResourcesObjDTO;
import com.hopes.bizz.emergency.resources.entity.ErExpertEntity;
import com.hopes.bizz.emergency.resources.entity.ErMaterialCheckEntity;
import com.hopes.bizz.emergency.resources.entity.ErMaterialEntity;
import com.hopes.boss.common.core.util.R;

import java.util.List;

/**
 * 应急物资
 *
 * @author cx
 * @date 2023-11-01 15:22:45
 */
public interface ErMaterialService extends IService<ErMaterialEntity> {

    R erMaterialPage(Page page, ErMaterialEntity erMaterial);

    void erMaterialDataChange(ErMaterialCheckEntity erMaterialCheck);

    /**
     * 统计不同单元标识绑定的物资List
     * @param resourcesObjDTO
     * @return 物资List
     *
     */
    R getListByUnitId(Page page, ErEmergencyResourcesObjDTO resourcesObjDTO);
}